
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/favicon.ico">

    <title>班级说说</title>

    <!-- Bootstrap core CSS -->
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <style type="text/css">
        .jumbotron{
            margin-top:30px;
        }
    </style>
    <!-- Custom styles for this template -->
    <!--<link href="/css/jumbotron.css" rel="stylesheet">-->


</head>

<body>
<% include header.ejs%>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
    <% if(!login) {%>
    <!--没有登陆的时候，提示登陆-->
    <div class="container">
        <div class="row">
            <div class="col-lg-6 col-md-6">
                <h1>
                    欢迎！
                </h1>
                <p>班级说说是我们交流的园地,欢迎注册</p>
                <p><a class="btn btn-primary btn-lg" href="/register" role="button">注册 &raquo;</a></p>

            </div>
            <div class="col-lg-6 col-md-6">
                    <p>已有账号登录</p>
                <form role="form">
                    <div class="form-group">
                        <label for="username">用户名</label>
                        <input type="text" class="form-control" id="username" placeholder="用户名">
                    </div>
                    <div class="form-group">
                        <label for="psd">密码</label>
                        <input type="password" class="form-control" id="psd" placeholder="密码">
                    </div>

                    <div class="checkbox">
                        <label>
                            <input type="checkbox">记住密码
                        </label>
                    </div>
                    <button type="submit" class="btn btn-success">登录</button>
                </form>
            </div>
        </div>
    </div>
    <%} else{ %>
    <div class="container">

          <a href="/setavatar">  <img src="/avatar/<%= avatar %>"  alt="啥都木有"></a>
        <p><%= username %></p>
        <p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more &raquo;</a></p>
    </div>
    <%}%>
</div>

<div class="container">
    <!-- Example row of columns -->
    <div class="row">
        <div class="col-md-4">
            <h2>Heading</h2>
            <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
            <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
        </div>
        <div class="col-md-4">
            <h2>Heading</h2>
            <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
            <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
        </div>
        <div class="col-md-4">
            <h2>Heading</h2>
            <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
            <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
        </div>
    </div>

    <hr>

    <footer>
        <p>&copy; Company 2014</p>
    </footer>
</div> <!-- /container -->


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/js/jquery-1.11.3.min.js"></script>
<script src="/js/bootstrap.min.js"></script>

</body>
</html>
